package ch.jherzig.uebungen.blatt1;

public class Aufgabe1 {

	public static void main(String[] args) {

		int[] a = { 70, 101, 45, 667, 23, 12, 34, 67, 89, 43 };
		int x = a[0];
		int y = a[0];

		for (int i = 0; i < a.length; i++) {
						
			if (x > a[i]) {
				x = a[i];
			}
			if (y < a[i]) {
				y = a[i];
			}
			
			System.out.println("Durlauf Nr: " + i + "  Resultat  X: " + x
					+ "  Y: " + y);
		}
		System.out.println("End Resultat  X: " + x + "  Y: " + y);
	}
}
